<%@ page import="org.jackysoft.entity.User"%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.pageoffice.cn" prefix="po"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<head>	
<title>文档浏览器</title>
<style type="text/css">
  *{
     margin:0;
     padding:0;
  }
</style>
</head>
	<body>
<script type="text/javascript">
	//保存
	function poSave() {
		document.getElementById("PageOfficeCtrl1").WebSave();
	}
	//全屏
	function poSetFullScreen() {
		document.getElementById("PageOfficeCtrl1").FullScreen = !document.getElementById("PageOfficeCtrl1").FullScreen;
	}
	function poPrev(){		
	    window.location.href="../../index.jsp";
	}
	function poNext(){		
	    
	}
	function afterSave(){
		
		
		var wid = '${workflowId}';		
		 var dispatcher = '${dispatcher}' || '0';
         if(dispatcher=='0'){
             //大多数情况下浏览表单
         	viewForm(wid);
         }else{
            
             var url = "fileflow/file/addfile";
         	var data = "uploaded=false&workflowId=${workflowId}";
         	window.openor.doGet(url, data);              		
            
         }
	}
	
	
	function viewForm(entityId,actionId,stepId){
		var url = "../../workflow/proceed/proceed!actionform?workflowId=" + entityId;
		//window.opener.location=url;
		window.open(url,"_self");
	}
</script>
<form method="post" id="poform">
<po:PageOfficeCtrl id="PageOfficeCtrl1" />
</form>

</body>
</html>
